package com.qilu.careprogram.dao;

import com.qilu.careprogram.pojo.entity.ProstateCancer;
import com.qilu.careprogram.pojo.vo.ProstateCancerVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
*@Description: 
*@CreateTime: 2025-04-17  17:16 
*@Version: 1.0
*/
@Mapper
public interface ProstateCancerDAO {
    void deleteByIds(@Param("ids") List<Long> ids);

    List<ProstateCancer> getProstateCancerListByHospitalNumber(@Param("hospitalNumber") String hospitalNumber, @Param("startTime")Date startTime, @Param("endTime") Date endTime);

    List<ProstateCancerVO> getProstateCancerVOS(@Param("hospitalNumber") String hospitalNumber,
                                                @Param("gender") String gender,
                                                @Param("idCard") String idCard,
                                                @Param("startTime") String startTime,
                                                @Param("endTime") String endTime);
    /**
     * 检索病人是否存在
     * @return 累计回访次数
     */
    Integer getProstateCancerReVisitNum(String hospitalNumber);

    /**
     * 插入新病人信息
     * @param
     */
    void insert(ProstateCancer prostateCancer);


    void update(ProstateCancer prostateCancer);
}


